package modelo.bd;

import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

public class Administrador {
    
    private static Administrador instancia;
    private Conexion con;

//    private Administrador() {
//        this.con = new Conexion();
//        
//    }

    public static Administrador obtenerInstancia() {
        if (instancia == null) {
            instancia = new Administrador();
        }
        return instancia;
    }
    
    public void iniciar() {
        try {
            this.con.crear();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Administrador.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(Administrador.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
